package c.j.a.c;

import c.j.a.b.a.c.a;
import c.j.a.c.g$g.d;
import c.j.a.c.o.b.b;
import com.ss.android.socialbase.downloader.g.c;
import org.json.JSONObject;

/* compiled from: BaseDownloadEventListener */
public class l {
    public void a(c cVar, String str, JSONObject jSONObject) {
        a b = d.c.a.b(cVar);
        if (b != null) {
            if ("install_view_result".equals(str)) {
                JSONObject jSONObject2 = new JSONObject();
                c.j.a.c.q.d.g(jSONObject, jSONObject2);
                g.n(jSONObject2, cVar);
                try {
                    jSONObject2.put("model_id", c.j.a.c.q.d.b(new JSONObject(cVar.h), "extra"));
                } catch (Exception unused) {
                }
                jSONObject = jSONObject2;
            }
            b.a.n(str, jSONObject, b);
        }
    }
}
